<template>
  <div class="headPreviewContainer">
    <el-card class="box-card"
             shadow="never">

      <div class="applicationInfo">

        <div class="Divider">
          <img src="../../../../assets/Group 3168.png"
               alt="">
          <div>{{ getUserHeaderDate.haveBeenUsed?getUserHeaderDate.haveBeenUsed:'0' }}</div>
          <span>已使用</span>

        </div>
        <div class="Divider">
          <img src="../../../../assets/Group 3167.png"
               alt="">
          <div>{{  getUserHeaderDate.notInUse?getUserHeaderDate.notInUse:'0' }}</div>
          <span>未使用</span>

        </div>
        <div class="Divider"
             style="border-right: none">
          <img src="../../../../assets/Group 3166.png"
               alt="">
          <div>{{  getUserHeaderDate.expired?getUserHeaderDate.expired:'0' }}</div>
          <span>已过期</span>
        </div>
      </div>
    </el-card>
  </div>
</template>
	
<script>
import { getCardUsageRecord } from '@/api/couponManagement/useRecord/index'

export default {
  name: 'headPreview',
  data () {
    return {
      getUserHeaderDate: {},

    };
  },
  activated () {
    this.queryHeader()
  },
  methods: {
    async queryHeader () {
      const res = await getCardUsageRecord({
        siteId: this.$store.state.site.info.id,

      })
      console.log(res)
      this.getUserHeaderDate = res
    }
  }
};
</script>
<style lang="less" scoped>
.headPreviewContainer {
  padding-bottom: 15px;
  .applicationInfo {
    display: flex;
    align-items: center;
    justify-content: center;
    span {
      color: #757575;
      font-size: 18px;
    }

    .Divider {
      text-align: center;
      width: 30%;

      border-right: 1px solid #ebebeb;
      .imgIcon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
      }
      span {
        color: #999;
        font-family: Inter;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
      }
    }

    div {
      margin: 3px 0 3px 0;
      color: #141414;
      font-weight: 500;
      font-size: 28px;
    }
  }
}
</style>
	